1082f9933628e406019a622500ce48adaba35e2e,app/src/main/java/davidandroidprojecttools/qq986945193/com/davidandroidprojecttools/utils/PicassoWithImageLoaderImageViewUtils.java,PicassoWithImageLoaderImageViewUtils,withImageView,#Context#String#ImageView#,27
Before Change
*/
public static void withImageView(Context context, String imageUrl, ImageView imageView) {
if (imageView != null && context != null && imageUrl != null) {
Picasso.with(context).load(imageUrl).into(imageView);
}
}
After Change
public static void withImageView(Context context, String imageUrl, ImageView imageView) {
if (imageView != null && context != null && imageUrl != null) {
Picasso.with(context).load(imageUrl)
.fit()
//è®¾ç½®åŠ è½½ä¹‹å‰?的默认图片
.placeholder(R.mipmap.ic_launcher)
//è®¾ç½®åŠ è½½å¤±è´¥çš„é»˜è®¤å›¾ç‰‡
.error(R.mipmap.ic_launcher)
.into(imageView);
}
}